<?php

session_start();
if (isset($_POST['btnAdd'])) {
    $_SESSION['id'] = $_POST['hidId'];    
    $_SESSION['size'] = $_POST['size'];
    
    header("location:cart.php");
    exit();
}
?>